package com.service;

import com.Dto.CounselorInfoDto;
import com.Dto.GuidanceRecordDto;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 通讯相关功能
 */
public interface MessageService {

    //创建一个新的咨询会话
    int createCounselingSession(Integer visitorId, Integer counselorId,LocalDateTime currentTime,Integer state);

    //结束咨询会话
    int endCounselingSession(Integer visitorId, Integer counselorId,LocalDateTime currentTime);

    //创建一个新的求助会话
    int createGuidanceSession(Integer counselorId, Integer supervisorId, LocalDateTime currentTime, Integer state);

    //结束求助会话
    int endGuidanceSession(Integer counselorId, Integer supervisorId,LocalDateTime currentTime);

    //接收单条消息
    boolean receiveSingleMessage(Integer from, Integer to, Integer sessionId, String content, LocalDateTime time, Integer type);

    //返回一次会话的全部求助记录
    List<GuidanceRecordDto> getGuidanceRecords(Integer counselorId,Integer supervisorId,LocalDateTime time);
}
